GtkEventBox: Correctly handle height for width
authorAlexander Larsson <alexl@redhat.com>
Mon, 6 May 2013 15:48:46 +0000 (17:48 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 6 May 2013 15:49:58 +0000 (17:49 +0200)
We need to pass on the width to the child.

https://bugzilla.gnome.org/show_bug.cgi?id=699140

gtk/gtkeventbox.c

index fa49a5d4035daf7ad8ff1ce692f2d8874992eb24..b696d1b1e331a7d070ea461dbef2576c74b3eab7 100644 (file)
@@ -547,7 +547,7 @@ gtk_event_box_get_preferred_height_and_baseline_for_width (GtkWidget *widget,
   child = gtk_bin_get_child (bin);
   if (child && gtk_widget_get_visible (child))
     gtk_widget_get_preferred_height_and_baseline_for_width (child,
-                                                           -1,
+                                                           width,
                                                            minimum,
                                                            natural,
                                                            minimum_baseline,